﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="UserList.aspx.cs" Inherits="UserList" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
 <ext:ResourceManager ID="ResourceManager1" runat="server" >
    </ext:ResourceManager>
        <ext:Viewport ID="Viewport1" Layout="Fit" runat="server"> 
        <Items>
            <ext:GridPanel runat="server" Layout="Fit">
                <Store>
                    <ext:Store ID="Store1" runat="server">
                        <Model>
                            <ext:Model runat="server" IDProperty="ID">
                                <Fields>
                                    <ext:ModelField Name="ID" />
                                    <ext:ModelField Name="username" />
                                    <ext:ModelField Name="passwd" />
                                </Fields>
                            </ext:Model>
                        </Model>
                    </ext:Store>
                </Store>
                <ColumnModel>
                    <Columns>
                        <ext:Column runat="server" Text="编号" DataIndex="ID"></ext:Column>
                        <ext:Column runat="server" Text="用户名" DataIndex="username"></ext:Column>
                        <ext:Column runat="server" Text="密码" DataIndex="passwd"></ext:Column>
                         <ext:CommandColumn ID="CommandColumn1" Width="180" runat="server">
                        <Commands>
                            <ext:GridCommand CommandName="Edit" Icon="NoteEdit" Text="编辑"></ext:GridCommand>
                        </Commands>
                        <DirectEvents>
                            <Command OnEvent="RecorderOperates">
                                <ExtraParams>
                                    <ext:Parameter Name="id" Value="record.data.ID" Mode="Raw" />
                                    <ext:Parameter Name="cmd" Value="command" Mode="Raw" />
                                </ExtraParams>
                            </Command>
                        </DirectEvents>
                    </ext:CommandColumn>
                    </Columns>
                </ColumnModel>
            </ext:GridPanel>
        </Items>
        </ext:Viewport>
         <ext:Window ID="Window1"  runat="server" Modal="True" Layout="Fit" Hidden="False" AutoShow="False"   Height="150" Icon="Application"
        Title="用户编辑" Width="400">
        <Items>
            <ext:FormPanel runat="server" BodyStyle="padding:5px 5px 0;"
            
            Layout="VBoxLayout">
                 <FieldDefaults LabelAlign="Top" MsgTarget="Side" />

            <Defaults>
                <ext:Parameter Name="Border" Value="false" />
                <ext:Parameter Name="Flex" Value="1" /> 
            </Defaults> 
                <Items> 
                    <ext:TextField ID="TextField1" runat="server" FieldLabel="用户名" AnchorHorizontal="98%"></ext:TextField>
                    <ext:TextField ID="TextField2" runat="server" FieldLabel="密码" AnchorHorizontal="98%"></ext:TextField>
                </Items>
            </ext:FormPanel>
        </Items>
        </ext:Window>
    </form>
</body>
</html>
